package com.qf.mapper;

import com.qf.bean.Major;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

public interface MajorMapper {
    @Select("select * from major where deptid=#{did}")
    List<Major> find(int did);
   @Select("select * from major where majorname=#{majorname}")
    Major findby(String majorname);
   @Select("select * from major")
    List<Major> findAll();
}
